<%@page import="Logic.Authorizer"%>
<%@page import="servlet.AppttypeDropdown"%>
<%@page import="servlet.StaffappStaffDropdown"%>
<%@page import="servlet.DiplomaDropDown"%>
<%@page import="servlet.YearDropDown"%>
<%@page import="servlet.Emailer"%>

<%@page import="Logic.EmailerJob"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<%
	if (session.getAttribute("name") == null) {
		response.sendRedirect("login.jsp");
	}
%>
<%
	int counteralt = 0;
	int counteralt1 = 0;
%>
<!-- Declare the first header -->
<jsp:include page="t_header.jsp" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/basic.css" />
<link rel="stylesheet"
	href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>

<!-- script for adding and removing staffnames from textarea -->
<script type="text/javascript">
	
</script>



<jsp:include page="header.html" />
<!-- Declare sidebar -->
<jsp:include page="t_sidebarappointment.jsp" />

<!-- Main Content -->
<section id="main" class="column"> <%
 	if (request.getParameter("error") != null) {

 		out.print("<h4 class='alert_success'>Printed!.</h4>");

 	}
 %> <%
 	if (request.getParameter("prompt") == null) {
 %> <article class="module width_3_quarter"> <header>
<h3>
	Select Appointment to print
	<table></table>
</h3>
</header>
<div class="module_content">
	<fieldset>
		<!-- to make two field float next to one another, adjust values accordingly -->
		<label>Select Appointment</label>

		<form id="form1" method="post" action="AppAllPrint">
			<select name="allAppointment" id="allAppointment">
				<option id="nill" value='nill'>--- Please Select ---</option>
				<%
					AppttypeDropdown afd = new AppttypeDropdown(out);
						afd.doGet(request, response);
				%>
			</select> <br>
			<br> <input type="submit" style="float: right" name="submit"
				value="Print" class="alt_btn" onclick="validate()" />
		</form>
	</fieldset>
</div>

<!-- Normal Form -->

<form action="appointmentPrint.jsp" method="POST" id="newApp2"
	style="display: none">
	<div class="module_content">

		<table id="specialtable" class="specialtable" width="100%"
			border="0px">

		</table>
		<input type="hidden" id="specialtablerownumber"
			name="specialtablerownumber" value="0" />




		<div class="submit_link"></div>

		<!-- Side Box for displaying selected staff's appointments -->
		<div class="sidebox" style="float: left; padding-top: 0px;">

			<input name="staff" type="hidden" id="staff" />
		</div>
		<div class="clear"></div>

		<input type="hidden" maxlength="70" name="description"> <input
			type="hidden" name="appointmentnormalnew" id="appointmentnormalnew">
		<input type="hidden" name="classcombinedfortable"
			id="classcombinedfortable">


		<div class="clear"></div>
	</div>

</form>

</article> <%
 	}
 	;
 %> </section>